package com.neusoft.feign;

import com.neusoft.po.Cart;
import com.neusoft.po.CommonResult;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

import java.math.BigDecimal;

@Component
public class VirtualwalletFeignClientCallBack implements VirtualwalletFeignClient {
    @PutMapping("/RechargeByUserId/{userId}/{add_balance}")
    public CommonResult rechargeByUserId(@PathVariable("userId") String userId, @PathVariable("add_balance") BigDecimal add_balance){
        return new CommonResult(403, "fegin触发了熔断降级", null);
    }

    //跟据用户ID提现
    @PutMapping("/PayoutByUserId/{userId}/{sub_balance}")
    public CommonResult payoutByUserId(@PathVariable("userId") String userId,@PathVariable("sub_balance") BigDecimal sub_balance){
        return new CommonResult(403, "fegin触发了熔断降级", null);
    }
}
